﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class videocontrol : MonoBehaviour {

	public AudioSource ass;

    public Image i;
    //播放
    public Sprite s;
    //暂停
    public Sprite ss;
    //停止
    public Sprite sss;

	public void AA()
    {
        if(i.sprite == ss)
        {
            i.sprite = s;
            ass.Play();
        }
        else if(i.sprite == sss)
        {
            i.sprite = s;
            ass.Play();
        }
        else if(i.sprite == s)
        {

        }
    }
}
